import request from '@/utils/request'

/**
 * 获取角色列表
 * @param {page,limit} data 
 * @returns 
 */
export function getRoleList(data) {
  return request({
    url: '/admin/role/roleList',
    method: 'post',
    data
  })
}

export function addRole(data) {
  return request({
    url: '/admin/role/addRole',
    method: 'post',
    data
  })
}

export function editRole(data) {
  return request({
    url: '/admin/role/editRole',
    method: 'post',
    data
  })
}

export function deleteRole(data) {
  return request({
    url: '/admin/role/delRole',
    method: 'post',
    data
  })
}
